import request from '@/utils/request'

export default {
  // 列表
  query(data) {
    return request({
      url: `/strategy/platform-label-strategy/index`,
      method: 'post',
      data
    })
  },
  // 日志
  oplog(params) {
    return request({
      url: `/oplog/strategy.platform-label-strategy`,
      method: 'get',
      params
    })
  },
  // 平台标发策略-启用禁用
  status(data) {
    return request({
      url: `/strategy/platform-label-strategy/batch-update`,
      method: 'POST',
      data
    })
  },
  // 平台标发策略-详情
  detail(params) {
    return request({
      url: `/strategy/platform-label-strategy/detail`,
      method: 'get',
      params
    })
  },
  //平台标发策略-编辑
  update(data) {
    return request({
      url: `/strategy/platform-label-strategy/update`,
      method: 'POST',
      data
    })
  },
  //平台标发策略-创建
  create(data) {
    return request({
      url: `/strategy/platform-label-strategy/create`,
      method: 'POST',
      data
    })
  },
  //平台标发策略-删除
  delete(data) {
    return request({
      url: `/strategy/platform-label-strategy/delete`,
      method: 'POST',
      data
    })
  },
}
